# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

IUSE="X gtk2 gnome"

DESCRIPTION="GUI frontend for recording from V4L devices using transcode"
HOMEPAGE="http://gv4l.sf.net/"
SRC_URI="http://osdn.dl.sourceforge.net/sourceforge/gv4l/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"

KEYWORDS="x86 ~ppc ~sparc ~sparc64 ~alpha ~amd64"

DEPEND=">=gnome-base/libgnomeui-2.0
	dev-util/desktop-file-utils"

RDEPEND=">=media-video/transcode-0.6.7
	media-tv/xawtv"

src_compile() {
	econf \
		--host=${CHOST} \
		--prefix=/usr \
		--enable-v4l --enable-gtk --enable-sdl --enable-X --enable-lame \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
}
